package com.cloudfun.campusshare.repo;

import com.cloudfun.campusshare.configuration.jpa.GaodaoRepository;
import com.cloudfun.campusshare.entity.AuthOrgEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * @Author : linyangping
 * @Date : Created in 1:55 PM 2019/11/6
 */
public interface AuthOrgEntityRepo extends GaodaoRepository<AuthOrgEntity, String> {

    AuthOrgEntity findTopByUserIdOrderByCreateTimeDesc(String userId);

    AuthOrgEntity findByUserId(String userId);
}